package com.wyw.design.model.learning.behavioral.status;

/**
 * @Title   具体状态1
 * @Description
 * @Author Mr Wu yewen.wu.china@gmail.com
 * @Date 2023/4/19 9:45
 * Update History:
 * Author        Time            Content
 */
public class ConcreteState1 extends State {

    @Override
    void handle1() {
        // 本状态ConcreteState1时的业务逻辑
    }
    @Override
    void handle2() {
        // 设置当前状态为state2
        super.context.setCurrentState(Ctx.state2);
        super.context.request2();
    }
}

